---
import data from 'virtual:json-conf';


interface Props {
  title?: string;
}
const { title = data.company.name } = Astro.props;
---

<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="description" content="Astro description" />
    {
      data.company.faviconIcon ? 
      <link rel="icon" href={data.company.faviconIcon} />
      :<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
    }
    <meta name="generator" content={Astro.generator} />
    <meta name="theme-color" content="#ffffff" />
    <meta name="creator" content="BluesYoung-web" />
    <meta name="robots" content="*" />
    <meta name="screen-orientation" content="portrait" />
    <meta name="x5-orientation" content="portrait" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="renderer" content="webkit" />
    <meta name="form-detection" content="telephone=no,email=no,date=no,address=no" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta id="viewportMeta" name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <title>{title}</title>
    <script is:inline>
    this.globalThis || (this.globalThis = this);
    window.onerror = function(e) {
      console.log(e);
      window.alert('您的浏览器版本过低，请尝试使用其他浏览器或将浏览器升级至最新版本后重试！');
    }
    </script>
  </head>
  <body>
    <div class="min-h-[calc(100vh-80px-300px)]">
      <slot/>
    </div>
  </body>
</html>
